package com.fly.chapter2;

/**
 * Created by Fly on 2017/6/20.
 * 客户端
 */
public class TimeClient {

    public static void main(String[] args) {
        int port = 6060;
        if (args != null && args.length > 0) {
            port = Integer.valueOf(args[0]);
        }

        TimeClienHandle timeClienHandle = new TimeClienHandle("127.0.0.1",port);
        new Thread(timeClienHandle,"NIO-TimeClienHandle-001").start();
    }
}
